import {Component} from 'react'
import style from "./index.module.css";
import {Link} from "react-router-dom"

export default class layouts extends Component {
    state={
        isShow:false
    }
    show(){
        this.setState({
            isShow:!this.state.isShow
        })
    }
    render = () => (
        <ul className={style.box}>
            <li><Link to="/" exact={true}>首页</Link></li>
            {/* <li><Link to="/user">客户管理</Link></li> */}
            <li><Link to="/cash">资金流水</Link></li>
            <li><Link to="/item">项目管理</Link></li>
            <li>
                <span onClick={()=>this.show()}>用户管理</span>
                <ul style={{"display":this.state.isShow?"block":"none"}}>
                    <li><Link to="/user">用户信息</Link></li>
                </ul>
            </li>
        </ul>
    )    
}



